/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="GLOSASGUIAS")
public class GlosasGuiasProteu implements Serializable{

    @Id
    @Column(name="GLG_ST_CODIGO")
    private String glgStCodigo;
    @Column(name="PAC_ST_NOME")
    private String pacStNome;
    @Column(name="PAC_ST_RG")
    private String pacStRG;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CON_ST_FANTASIA")
    private String conStFantasia;
    @Column(name="GLG_ST_MOTIVO")
    private String glgStMotivo;
    @Column(name="AGD_ST_GUIA")
    private String agdStGuia;
    @Column(name="GLG_ST_RECURSO")
    private String glgStRecurso;
    @Column(name="GLG_DT_COMPETENCIA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date glgDtCompetencia;


    public String getAgdStGuia() {
        return agdStGuia;
    }

    public void setAgdStGuia(String agdStGuia) {
        this.agdStGuia = agdStGuia;
    }

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStFantasia() {
        return conStFantasia;
    }

    public void setConStFantasia(String conStFantasia) {
        this.conStFantasia = conStFantasia;
    }

    public Date getGlgDtCompetencia() {
        return glgDtCompetencia;
    }

    public void setGlgDtCompetencia(Date glgDtCompetencia) {
        this.glgDtCompetencia = glgDtCompetencia;
    }

    public String getGlgStCodigo() {
        return glgStCodigo;
    }

    public void setGlgStCodigo(String glgStCodigo) {
        this.glgStCodigo = glgStCodigo;
    }

    public String getGlgStMotivo() {
        return glgStMotivo;
    }

    public void setGlgStMotivo(String glgStMotivo) {
        this.glgStMotivo = glgStMotivo;
    }

    public String getGlgStRecurso() {
        return glgStRecurso;
    }

    public void setGlgStRecurso(String glgStRecurso) {
        this.glgStRecurso = glgStRecurso;
    }

    public String getPacStNome() {
        return pacStNome;
    }

    public void setPacStNome(String pacStNome) {
        this.pacStNome = pacStNome;
    }

    public String getPacStRG() {
        return pacStRG;
    }

    public void setPacStRG(String pacStRG) {
        this.pacStRG = pacStRG;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GlosasGuiasProteu other = (GlosasGuiasProteu) obj;
        if ((this.glgStCodigo == null) ? (other.glgStCodigo != null) : !this.glgStCodigo.equals(other.glgStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + (this.glgStCodigo != null ? this.glgStCodigo.hashCode() : 0);
        return hash;
    }



}
